/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"29175EC6-E4A9-4DB5-B644-32628C502ED2"}
 */
function rellenar(event) {
	var $dtl = precios_to_precios_detalle
	var $precio_base = 0
	for (var i = 1 ; i <= $dtl.getSize() ; i++)
	{
		var $rec = $dtl.getRecord(i)
		if ($rec.precio == 0)
		{
			$rec.precio = $precio_base + precio_adulto_adic
		}
		$precio_base = $rec.precio
	}
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"F167B12B-5F5E-4760-809E-370BE1EB325B"}
 */
function guardar(event) {
	databaseManager.saveData()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"E7BD28CD-E0F2-4487-8F73-0422143E7EB6"}
 */
function cancelar(event) {
	databaseManager.revertEditedRecords()
}
